package o;

import android.content.Context;
import android.os.RemoteException;
import com.huawei.appmarket.framework.coreservice.DataHolder;
import com.huawei.appmarket.framework.coreservice.Status;
import com.huawei.appmarket.service.distribution.authentication.bean.AgdSecurityVerificationRequest;
import com.huawei.appmarket.service.externalservice.distribution.download.request.StartDownloadIPCRequest;
import com.huawei.appmarket.service.externalservice.distribution.download.response.TaskOperationResponse;

public class dzj implements dhe<StartDownloadIPCRequest, TaskOperationResponse> {
    public void ˊ(Context context, DataHolder<StartDownloadIPCRequest> dataHolder, dgz o_dgz) throws RemoteException {
        if (doo.ˊ(context)) {
            if ((((StartDownloadIPCRequest) dataHolder.ˊ()).ˎ() & 2) != 0) {
                new dxp(context, ˊ(), o_dgz).ॱ(new dxn(dataHolder));
            } else {
                dxn o_dxn = new dxn(dataHolder);
                cvt ˏ = AgdSecurityVerificationRequest.ˏ(o_dxn, context);
                ˏ.ʽ(1);
                dxv o_dxv = new dxv(context, o_dxn, o_dgz, ˊ());
                o_dxv.ˊ(ˏ.ʼ());
                cfw.ˎ(ˏ, new dxg(o_dxv));
            }
            dzg.ˏ(new dxn(dataHolder));
            return;
        }
        Status status = new Status();
        status.ˋ(7);
        o_dgz.ॱ(status);
        Logger.ˎ("StartDownloadProcess", "have No network");
    }

    public TaskOperationResponse ˊ() {
        return new TaskOperationResponse();
    }
}
